package shootingtactics.client.top;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiBinderUtil;
import com.google.gwt.user.client.ui.Widget;

public class Index_IndexUiBinderImpl implements UiBinder<com.google.gwt.user.client.ui.Widget, shootingtactics.client.top.Index>, shootingtactics.client.top.Index.IndexUiBinder {

  public com.google.gwt.user.client.ui.Widget createAndBindUi(final shootingtactics.client.top.Index owner) {

    shootingtactics.client.top.Index_IndexUiBinderImpl_GenBundle clientBundleFieldNameUnlikelyToCollideWithUserSpecifiedFieldOkay = (shootingtactics.client.top.Index_IndexUiBinderImpl_GenBundle) GWT.create(shootingtactics.client.top.Index_IndexUiBinderImpl_GenBundle.class);
    shootingtactics.client.top.Index_IndexUiBinderImpl_GenCss_style style = clientBundleFieldNameUnlikelyToCollideWithUserSpecifiedFieldOkay.style();
    java.lang.String domId0 = com.google.gwt.dom.client.Document.get().createUniqueId();
    com.google.gwt.user.client.ui.HTML errorMessage = (com.google.gwt.user.client.ui.HTML) GWT.create(com.google.gwt.user.client.ui.HTML.class);
    java.lang.String domId1 = com.google.gwt.dom.client.Document.get().createUniqueId();
    com.google.gwt.user.client.ui.HTML infoMessage = (com.google.gwt.user.client.ui.HTML) GWT.create(com.google.gwt.user.client.ui.HTML.class);
    java.lang.String domId2 = com.google.gwt.dom.client.Document.get().createUniqueId();
    com.google.gwt.user.client.ui.MenuItem topMenu = new com.google.gwt.user.client.ui.MenuItem("", (com.google.gwt.user.client.Command) null);
    com.google.gwt.user.client.ui.MenuItem editBossMenu = new com.google.gwt.user.client.ui.MenuItem("", (com.google.gwt.user.client.Command) null);
    com.google.gwt.user.client.ui.MenuItem contact = new com.google.gwt.user.client.ui.MenuItem("", (com.google.gwt.user.client.Command) null);
    com.google.gwt.user.client.ui.MenuItem about = new com.google.gwt.user.client.ui.MenuItem("", (com.google.gwt.user.client.Command) null);
    com.google.gwt.user.client.ui.MenuBar f_MenuBar2 = (com.google.gwt.user.client.ui.MenuBar) GWT.create(com.google.gwt.user.client.ui.MenuBar.class);
    java.lang.String domId3 = com.google.gwt.dom.client.Document.get().createUniqueId();
    com.google.gwt.user.client.ui.FlowPanel mainPanel = (com.google.gwt.user.client.ui.FlowPanel) GWT.create(com.google.gwt.user.client.ui.FlowPanel.class);
    com.google.gwt.user.client.ui.HTMLPanel f_HTMLPanel1 = new com.google.gwt.user.client.ui.HTMLPanel("<span id='" + domId0 + "'></span> <span id='" + domId1 + "'></span> <span id='" + domId2 + "'></span> <span id='" + domId3 + "'></span>");

    errorMessage.setStyleName("errorMessage");
    infoMessage.setStyleName("infoMessage");
    topMenu.setHTML("Top");
    f_MenuBar2.addItem(topMenu);
    editBossMenu.setHTML("EditBoss");
    f_MenuBar2.addItem(editBossMenu);
    contact.setHTML("Contact");
    f_MenuBar2.addItem(contact);
    about.setHTML("About");
    f_MenuBar2.addItem(about);
    f_MenuBar2.setAnimationEnabled(true);
    mainPanel.setHeight("100%");
    mainPanel.setWidth("100%");

    UiBinderUtil.TempAttachment attachRecord0 = UiBinderUtil.attachToDom(f_HTMLPanel1.getElement());
    com.google.gwt.user.client.Element domId0Element = com.google.gwt.dom.client.Document.get().getElementById(domId0).cast();
    com.google.gwt.user.client.Element domId1Element = com.google.gwt.dom.client.Document.get().getElementById(domId1).cast();
    com.google.gwt.user.client.Element domId2Element = com.google.gwt.dom.client.Document.get().getElementById(domId2).cast();
    com.google.gwt.user.client.Element domId3Element = com.google.gwt.dom.client.Document.get().getElementById(domId3).cast();
    attachRecord0.detach();
    f_HTMLPanel1.addAndReplaceElement(errorMessage, domId0Element);
    f_HTMLPanel1.addAndReplaceElement(infoMessage, domId1Element);
    f_HTMLPanel1.addAndReplaceElement(f_MenuBar2, domId2Element);
    f_HTMLPanel1.addAndReplaceElement(mainPanel, domId3Element);


    owner.about = about;
    owner.contact = contact;
    owner.editBossMenu = editBossMenu;
    owner.errorMessage = errorMessage;
    owner.infoMessage = infoMessage;
    owner.mainPanel = mainPanel;
    owner.topMenu = topMenu;
    clientBundleFieldNameUnlikelyToCollideWithUserSpecifiedFieldOkay.style().ensureInjected();

    return f_HTMLPanel1;
  }
}
